/* Converts a string to a table */
table.FromString = function( str )
	
	/* Variables */
	local tab = {}
	
	/* Ensure valid format */
	if string.match( str, "{.+}" ) then
		
		/* Debug output */
		DEBUG:Msg( "Table string match: " .. string.match( str, "{.+}" ), "table.FromString" )
		
		/* Loop groups */
		for k in string.gmatch( str, "%w+=%w+" ) do
			
			/* Keep the value (end part) */
			toks = string.gmatch( k, "%w+$" )
			if toks then
				
				/* Insert the value into the table */
				local val = toks( 1 )
				table.insert( tab, tostring( val ) )
			end
		end
	end
	
	/* Return the table */
	return tab
end